package field_method05;

public class User {
    String unserName;

    String password;
    public boolean login(String unserNameParam,String passwordParam){
        System.out.println("传递过来的用户名：" +unserNameParam);
        System.out.println("传递过来的密码：" + passwordParam);
        if (unserNameParam.equals("admin") && passwordParam.equals("123456")) {
            return true;
        }else{
            return false;
        }
    }
}
